package com.ldx.blog.common.exception;

import lombok.Data;

@Data
public class BlogException extends Exception {
    private int code;
    private String errMsg;
    public BlogException(String errMsg) {
        this.errMsg = errMsg;
    }

    public BlogException(int code, String errMsg){
        this.code = code;
        this.errMsg = errMsg;
    }
}
